package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgRechargeConsumptionMapper;
import com.ruoyi.project.domain.YqgRechargeConsumption;
import com.ruoyi.project.service.IYqgRechargeConsumptionService;

/**
 * 会员卡充值消费Service业务层处理
 * 
 * @author dr
 * @date 2023-06-06
 */
@Service
public class YqgRechargeConsumptionServiceImpl implements IYqgRechargeConsumptionService 
{
    @Autowired
    private YqgRechargeConsumptionMapper yqgRechargeConsumptionMapper;

    /**
     * 查询会员卡充值消费
     * 
     * @param id 会员卡充值消费主键
     * @return 会员卡充值消费
     */
    @Override
    public YqgRechargeConsumption selectYqgRechargeConsumptionById(Long id)
    {
        return yqgRechargeConsumptionMapper.selectYqgRechargeConsumptionById(id);
    }

    /**
     * 查询会员卡充值消费列表
     * 
     * @param yqgRechargeConsumption 会员卡充值消费
     * @return 会员卡充值消费
     */
    @Override
    public List<YqgRechargeConsumption> selectYqgRechargeConsumptionList(YqgRechargeConsumption yqgRechargeConsumption)
    {
        return yqgRechargeConsumptionMapper.selectYqgRechargeConsumptionList(yqgRechargeConsumption);
    }

    /**
     * 新增会员卡充值消费
     * 
     * @param yqgRechargeConsumption 会员卡充值消费
     * @return 结果
     */
    @Override
    public int insertYqgRechargeConsumption(YqgRechargeConsumption yqgRechargeConsumption)
    {
        return yqgRechargeConsumptionMapper.insertYqgRechargeConsumption(yqgRechargeConsumption);
    }

    /**
     * 修改会员卡充值消费
     * 
     * @param yqgRechargeConsumption 会员卡充值消费
     * @return 结果
     */
    @Override
    public int updateYqgRechargeConsumption(YqgRechargeConsumption yqgRechargeConsumption)
    {
        return yqgRechargeConsumptionMapper.updateYqgRechargeConsumption(yqgRechargeConsumption);
    }

    /**
     * 批量删除会员卡充值消费
     * 
     * @param ids 需要删除的会员卡充值消费主键
     * @return 结果
     */
    @Override
    public int deleteYqgRechargeConsumptionByIds(Long[] ids)
    {
        return yqgRechargeConsumptionMapper.deleteYqgRechargeConsumptionByIds(ids);
    }

    /**
     * 删除会员卡充值消费信息
     * 
     * @param id 会员卡充值消费主键
     * @return 结果
     */
    @Override
    public int deleteYqgRechargeConsumptionById(Long id)
    {
        return yqgRechargeConsumptionMapper.deleteYqgRechargeConsumptionById(id);
    }
}
